package cvut.swe.semestralka.controller;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;

public class SearchForm {
	
	@NotEmpty
	private String busLine;
	
	@NotEmpty
	private String fromStation;
	
	@Min(value=0, message="hour.0")
	@Max(value=23, message="hour.23")
	@NotNull
	private Integer hour;
	
	@Min(value=0, message="hour.0")
	@Max(value=59, message="minute.59")
	@NotNull
	private Integer minute;
	
	@NotEmpty
	private String lastStation;
	
	private EResultType resultType;
	
	public String getLastStation() {
		return lastStation;
	}

	public void setLastStation(String lastStation) {
		this.lastStation = lastStation;
	}

	public EResultType getResultType() {
		return resultType;
	}

	public void setResultType(EResultType resultType) {
		this.resultType = resultType;
	}

	public String getBusLine() {
		return busLine;
	}

	public void setBusLine(String busLine) {
		this.busLine = busLine;
	}

	public String getFromStation() {
		return fromStation;
	}

	public void setFromStation(String fromStation) {
		this.fromStation = fromStation;
	}

	public Integer getHour() {
		return hour;
	}

	public void setHour(Integer hour) {
		this.hour = hour;
	}

	public Integer getMinute() {
		return minute;
	}

	public void setMinute(Integer minute) {
		this.minute = minute;
	}
	
	

}
